home *** CD-ROM | disk | FTP | other *** search
- package horst;
-
- import java.awt.Rectangle;
-
- public class BlockView extends View {
- public BlockView(View parent, Element e, HTMLPane container) {
- super(parent, e, container);
- }
-
- protected boolean isNewlineView() {
- return true;
- }
-
- protected boolean isNextViewOnNewLine() {
- return true;
- }
-
- protected Rectangle layout(int x, int y, int width, LayoutInfo info) {
- if ((super.m_elem.getType() == 37 || super.m_elem.getType() == 80) && super.m_container.getFramesEnabled()) {
- super.m_bounds.setBounds(0, 0, 0, 0);
- return super.m_bounds;
- } else {
- return super.layout(x, y, width, info);
- }
- }
- }
-